﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	xmlns:DataComparisons="clr-namespace:DataComparisons"
	x:Class="Window1"
	x:Name="Window"
	Title="BucketSoft Data Comparisons"
	Width="700" Height="550" 
	MinWidth="600" MinHeight="500" 
    MaxWidth="{DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}}"
    MaxHeight="{DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}}"
	xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" WindowStyle="None">
	<Window.Resources>
		<Style x:Key="ArrowButton" TargetType="{x:Type Button}">
			<Style.Triggers>
				<Trigger Property="IsEnabled" Value="false">
					<Setter Property="Visibility" Value="Hidden"/>
				</Trigger>
			</Style.Triggers>
		</Style>
		<LinearGradientBrush x:Key="BlueSharpGradientBrush" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF0000FF" Offset="0"/>
			<GradientStop Color="#FF0000EE" Offset="0.5"/>
			<GradientStop Color="#FF000099" Offset="1"/>
		</LinearGradientBrush>
		<LinearGradientBrush x:Key="RedSharpGradientBrush" EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFFF0000" Offset="0"/>
			<GradientStop Color="#FFEE0000" Offset="0.5"/>
			<GradientStop Color="#FF990000" Offset="1"/>
		</LinearGradientBrush>

		<Style x:Key="PlainButton" TargetType="{x:Type Button}">
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Foreground" Value="#FF000000"/>
				</Trigger>
			</Style.Triggers>
			<Setter Property="Background" Value="#FFFFFFFF"/>
			<Setter Property="Foreground" Value="#ff888888"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Rectangle Fill="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Stroke="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" RadiusX="2" RadiusY="2">
							</Rectangle>
							<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Name="content"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<Style x:Key="MinimizeButton" TargetType="{x:Type Button}">
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Foreground" Value="#FFffffff"/>
					<Setter Property="Effect">
						<Setter.Value>
							<DropShadowEffect ShadowDepth="0" Color="#FF00FF33" BlurRadius="10" />
						</Setter.Value>
					</Setter>
				</Trigger>
			</Style.Triggers>
			<Setter Property="Background" Value="#FFFFFFFF"/>
			<Setter Property="Foreground" Value="#ffcccccc"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Stroke="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" RadiusX="2" RadiusY="2">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF777777" Offset="0"/>
										<GradientStop Color="#FF444444" Offset="0.4"/>
										<GradientStop Color="#FF111111" Offset="0.5"/>
										<GradientStop Color="#FF333333" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<Path HorizontalAlignment="Center" StrokeThickness="1.000" Stroke="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" StrokeMiterLimit="1.000" Data="F1 M 8,8 L 0,8 L 0,7 L 8,7 L 8,8 Z" Margin="0,5,0,0"/>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>

		<Style x:Key="RestoreButton" TargetType="{x:Type Button}">
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Foreground" Value="#FFffffff"/>
					<Setter Property="Effect">
						<Setter.Value>
							<DropShadowEffect ShadowDepth="0" Color="#FFFFCC00" BlurRadius="10" />
						</Setter.Value>
					</Setter>
				</Trigger>
			</Style.Triggers>
			<Setter Property="Background" Value="#FFFFFFFF"/>
			<Setter Property="Foreground" Value="#ffcccccc"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Stroke="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" RadiusX="2" RadiusY="2">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF777777" Offset="0"/>
										<GradientStop Color="#FF444444" Offset="0.4"/>
										<GradientStop Color="#FF111111" Offset="0.5"/>
										<GradientStop Color="#FF333333" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>

							<Rectangle Width="10" Height="9">
							  <Rectangle.Fill>
							    <DrawingBrush>
							      <DrawingBrush.Drawing>
							        <DrawingGroup>
							          <DrawingGroup.Children>
									      <DrawingGroup>
									        <DrawingGroup.Children>

									        <GeometryDrawing Geometry="F1 M 9,6 L 0,6 L 0,0 L 9,0 L 9,6 Z">
									          <GeometryDrawing.Pen>
									            <Pen DashCap="Flat" Thickness="1.000" Brush="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" MiterLimit="1.000"/>
									          </GeometryDrawing.Pen>
									        </GeometryDrawing>

									        <GeometryDrawing Brush="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" Geometry="F1 M 6,6 L 0,6 L 0,3 L 6,3 L 6,6 Z">
									          <GeometryDrawing.Pen>
									            <Pen DashCap="Flat" Thickness="2.000" Brush="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" MiterLimit="1.000"/>
									          </GeometryDrawing.Pen>
									        </GeometryDrawing>

									        </DrawingGroup.Children>
									      </DrawingGroup>
							          </DrawingGroup.Children>
							        </DrawingGroup>
							      </DrawingBrush.Drawing>
							    </DrawingBrush>
							  </Rectangle.Fill>
							</Rectangle>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		
		<Style x:Key="MaximizeButton" TargetType="{x:Type Button}">
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Foreground" Value="#FFffffff"/>
					<Setter Property="Effect">
						<Setter.Value>
							<DropShadowEffect ShadowDepth="0" Color="#FFFFCC00" BlurRadius="10" />
						</Setter.Value>
					</Setter>
				</Trigger>
			</Style.Triggers>
			<Setter Property="Background" Value="#FFFFFFFF"/>
			<Setter Property="Foreground" Value="#ffcccccc"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Stroke="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" RadiusX="2" RadiusY="2">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF777777" Offset="0"/>
										<GradientStop Color="#FF444444" Offset="0.4"/>
										<GradientStop Color="#FF111111" Offset="0.5"/>
										<GradientStop Color="#FF333333" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>

							<Rectangle Width="10" Height="9" Margin="0,1,0,0">
							  <Rectangle.Fill>
							    <DrawingBrush>
							      <DrawingBrush.Drawing>
							        <DrawingGroup>
							          <DrawingGroup.Children>
									      <DrawingGroup>
									        <DrawingGroup.Children>
									        <GeometryDrawing Geometry="F1 M 8.583,6.917 L 1.000,6.917 L 1.000,1.000 L 8.583,1.000 L 8.583,6.917 Z">
									          <GeometryDrawing.Pen>
									            <Pen DashCap="Flat" Thickness="2.000" Brush="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" MiterLimit="1.000"/>
									          </GeometryDrawing.Pen>
									        </GeometryDrawing>
									        </DrawingGroup.Children>
									      </DrawingGroup>
							          </DrawingGroup.Children>
							        </DrawingGroup>
							      </DrawingBrush.Drawing>
							    </DrawingBrush>
							  </Rectangle.Fill>
							</Rectangle>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		
		<Style x:Key="CloseButton" TargetType="{x:Type Button}">
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Foreground" Value="#FFffffff"/>
					<Setter Property="Effect">
						<Setter.Value>
							<DropShadowEffect ShadowDepth="0" Color="#FFFF0000" BlurRadius="10" />
						</Setter.Value>
					</Setter>
				</Trigger>
			</Style.Triggers>
			<Setter Property="Background" Value="#FFFFFFFF"/>
			<Setter Property="Foreground" Value="#ffcccccc"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Stroke="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" RadiusX="2" RadiusY="2">
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF777777" Offset="0"/>
										<GradientStop Color="#FF444444" Offset="0.4"/>
										<GradientStop Color="#FF111111" Offset="0.5"/>
										<GradientStop Color="#FF333333" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
					
							<Rectangle Width="12" Height="10">
							  <Rectangle.Fill>
							    <DrawingBrush>
							      <DrawingBrush.Drawing>
							        <DrawingGroup>
							          <DrawingGroup.Children>
									      <DrawingGroup>
									        <DrawingGroup.Children>
										      <DrawingGroup>
										        <DrawingGroup.Children>
										        	<GeometryDrawing Brush="{Binding RelativeSource={RelativeSource AncestorType={x:Type Button}}, Path=Foreground}" Geometry="F1 M 2.681,0.000 L 3.421,0.971 C 3.637,1.271 3.837,1.571 4.037,1.847 L 4.068,1.847 C 4.269,1.535 4.453,1.235 4.653,0.947 L 5.316,0.000 L 7.859,0.000 L 5.378,2.794 L 7.890,5.864 L 5.239,5.864 L 4.484,4.810 C 4.269,4.521 4.083,4.222 3.898,3.922 L 3.853,3.922 C 3.667,4.233 3.467,4.521 3.282,4.810 L 2.573,5.864 L 0.000,5.864 L 2.558,2.878 L 0.062,0.000 L 2.681,0.000 Z"/>
										        </DrawingGroup.Children>
										      </DrawingGroup>
									        </DrawingGroup.Children>
									      </DrawingGroup>
							          </DrawingGroup.Children>
							        </DrawingGroup>
							      </DrawingBrush.Drawing>
							    </DrawingBrush>
							  </Rectangle.Fill>
							</Rectangle>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>
	<Window.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFFFFFFF" Offset="0"/>
			<GradientStop Color="#FFEEEEEE" Offset="1"/>
		</LinearGradientBrush>
	</Window.Background>

	<Grid x:Name="LayoutRoot" Grid.IsSharedSizeScope="True">
		<Grid.RowDefinitions>
			<RowDefinition Height="26" />
			<RowDefinition Height="*" />
			<RowDefinition Height="5" />
			<RowDefinition Height="100" />
		</Grid.RowDefinitions>

		<!-- Header -->
		<Grid x:Name="gHeader" Grid.Row="0">
			<Grid.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF444444" Offset="0"/>
					<GradientStop Color="#FF000000" Offset="1"/>
				</LinearGradientBrush>
			</Grid.Background>

			<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
				<DataComparisons:LogoControl Margin="5,0,0,0" Width="94" Height="17" x:Name="Logo" HorizontalAlignment="Left" VerticalAlignment="Top" Cursor="Hand" ToolTip="www.bucketsoft.com" />
				<TextBlock Margin="5,0,0,0" VerticalAlignment="Top" Width="Auto" Height="Auto" FontWeight="Normal" FontSize="14" d:LayoutOverrides="Width" HorizontalAlignment="Left" x:Name="lblProductName" FontStyle="Italic" Foreground="#ffffffff">
					Data Comparisons
				</TextBlock>
			</StackPanel>
			
			<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,3,5,0" Height="20" VerticalAlignment="Center">
				<Button x:Name="btnMinimize" Width="18" Height="18" VerticalAlignment="Top" Padding="0" Margin="2,0,0,0" Style="{StaticResource MinimizeButton}" ToolTip="Minimize" />
				<Button x:Name="btnMaximize" Width="18" Height="18" VerticalAlignment="Top" Padding="0" Margin="2,0,0,0" Style="{StaticResource MaximizeButton}" ToolTip="Maximize" />
				<Button x:Name="btnClose" Width="18" Height="18" VerticalAlignment="Top" Padding="0" Margin="2,0,0,0" Style="{StaticResource CloseButton}" ToolTip="Close" />
			</StackPanel>
		</Grid>
			
		<!-- Content -->
        <Grid Margin="8,5,8,5" Grid.Row="1">
			<Popup Name="popup1" PlacementTarget="{Binding ElementName=b1}" PopupAnimation="Fade" Placement="Left" HorizontalOffset="{Binding ElementName=b1, Path=ActualWidth}" AllowsTransparency="True">
				<Border CornerRadius="4,4,4,4">
					<Border.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FF444444" Offset="0"/>
							<GradientStop Color="#FF000000" Offset="1"/>
						</LinearGradientBrush>
					</Border.Background>
					<StackPanel Margin="5">
						<TextBlock Margin="5,0,5,0" VerticalAlignment="Top" HorizontalAlignment="Right" Foreground="#ffffffff" FontWeight="Bold">Help...</TextBlock>
						<TextBlock Margin="5,0,5,0" VerticalAlignment="Top" HorizontalAlignment="Right"><Hyperlink x:Name="LinkOnlineHelp" NavigateUri="http://www.bucketsoft.com/data_comparisons/help/" Foreground="#ffffffff">Online Help</Hyperlink></TextBlock>
						<TextBlock Margin="5,0,5,0" VerticalAlignment="Top" HorizontalAlignment="Right"><Hyperlink x:Name="LinkFeedback" NavigateUri="http://www.bucketsoft.com/feedback/" Foreground="#ffffffff">Send Feedback</Hyperlink></TextBlock>
						<TextBlock Margin="5,0,5,0" VerticalAlignment="Top" HorizontalAlignment="Right"><Hyperlink x:Name="LinkUpdates" NavigateUri="http://www.bucketsoft.com/data_comparisons/updates/" Foreground="#ffffffff">Check for Updates</Hyperlink></TextBlock>
					</StackPanel>
				</Border>
			</Popup>

			<StackPanel VerticalAlignment="Top" HorizontalAlignment="Right" Orientation="Horizontal">
				<TextBlock x:Name="TextUpdateAvailable" Margin="5,0,10,0" VerticalAlignment="Center" Visibility="Hidden"><Hyperlink x:Name="LinkUpdateAvailable" NavigateUri="http://www.bucketsoft.com/data_comparisons/updates/" Foreground="#ff009933">An update is available</Hyperlink></TextBlock>
				<Button x:Name="b1" Width="50" Height="25" Style="{StaticResource PlainButton}">Help...</Button>			
			</StackPanel>
			
            <Grid x:Name="gConnections" Visibility="Hidden" VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling">
				<Grid.RowDefinitions>
					<RowDefinition Height="*" />
					<RowDefinition Height="50" />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="40" />
					<ColumnDefinition Width="*" />
				</Grid.ColumnDefinitions>

				<Grid Grid.Column="0" Margin="10,0,10,0">
					<DataComparisons:Connection HorizontalAlignment="Stretch" Margin="0,50,0,0" VerticalAlignment="Stretch" x:Name="ConnectionA"/>
					<DataComparisons:IconRedDB HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="44" Height="45"/>
					<TextBlock Margin="50,25,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" Foreground="{StaticResource RedSharpGradientBrush}">
						Connection
					</TextBlock>
				</Grid>
				
				<Grid Grid.Column="1" Margin="0">
					<Button x:Name="btnUseConnectionB" Style="{StaticResource ArrowButton}" Background="White" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,210,0,0" Width="20" ToolTip="Copy connection 'B' onto connection 'A'" IsEnabled="False">
						<Path Data="M 9,0 l -10,7 l 10,7 Z" Fill="{StaticResource BlueSharpGradientBrush}"/>
					</Button>
					<Button x:Name="btnUseConnectionA" Style="{StaticResource ArrowButton}" Background="White" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,210,0,0" Width="20" ToolTip="Copy connection 'A' onto connection 'B'" IsEnabled="False">
						<Path Data="M 1,0 l 10,7 l -10,7 Z" Fill="{StaticResource RedSharpGradientBrush}"/>
					</Button>
				</Grid>
				
				<Grid Grid.Column="2" Margin="10,0,10,0">
					<DataComparisons:Connection Margin="0,50,0,0" x:Name="ConnectionB" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
					<DataComparisons:IconBlueDB HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="44" Height="45"/>
					<TextBlock Margin="50,25,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" Foreground="{StaticResource BlueSharpGradientBrush}">
						Connection
					</TextBlock>
				</Grid>
				
				<Button Grid.Column="2" Grid.Row="2" Padding="5" d:LayoutOverrides="Height" VerticalAlignment="Bottom" Width="Auto" FontWeight="Bold" HorizontalAlignment="Right" x:Name="btnContinue1" IsEnabled="False" IsDefault="True">
					<StackPanel Orientation="Horizontal">
						<TextBlock Margin="0,0,5,0">Configure Comparison</TextBlock>
						<Path Data="M 0,0 l 8,8 l -8,8 Z" Fill="{Binding ElementName=btnContinue1, Path=Foreground}"/>
					</StackPanel>
				</Button>
                </Grid>
                <Grid x:Name="gComparison" Visibility="Hidden" VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling">
				<Grid.RowDefinitions>
					<RowDefinition Height="*" />
					<RowDefinition Height="100" />
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="*" />
					<ColumnDefinition Width="40" />
					<ColumnDefinition Width="*" />
				</Grid.ColumnDefinitions>
				
				<Grid Grid.Column="0" Grid.Row="0" Margin="10,0,10,0">
					<TextBlock Margin="50,25,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" Foreground="{StaticResource RedSharpGradientBrush}">
						Database
					</TextBlock>
					<DataComparisons:IconRedDB HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="44" Height="45"/>
                    <DataComparisons:Database x:Name="DatabaseA" Margin="0,50,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
				</Grid>
				
				<Grid Grid.Column="2" Grid.Row="0" Margin="10,0,10,0">
					<TextBlock Margin="50,25,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" Foreground="{StaticResource BlueSharpGradientBrush}">
						Database
					</TextBlock>
					<DataComparisons:IconBlueDB HorizontalAlignment="Left" Margin="0,5,0,0" VerticalAlignment="Top" Width="44" Height="45"/>
                    <DataComparisons:Database x:Name="DatabaseB" Margin="0,50,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
				</Grid>

				<Grid Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3">
					<Label HorizontalAlignment="Right" Margin="0,5,250,0" VerticalAlignment="Top" Content="Comparison Mode:" FontWeight="Bold"/>
					<Grid HorizontalAlignment="Right" Margin="0,10,10,0">
						<RadioButton HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Content="_Standard" IsChecked="True" GroupName="ComparisonMode" ToolTip="Case-sensitive and thorough comparison." x:Name="cbStandardMode" />
						<RadioButton HorizontalAlignment="Left" Margin="0,20,0,0" VerticalAlignment="Top" Content="_Quick (same server comparisons only)" GroupName="ComparisonMode" ToolTip="Case sensitivity determined by SQL server.  Only the first 8,000 bytes of blob data types are compared." x:Name="cbQuickMode"/>
					</Grid>
					
		      		<Button Padding="5" x:Name="btnPrevious1" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="Auto" BorderThickness="1,1,1,1">
						<StackPanel Orientation="Horizontal">
							<Path Data="M 8,0 l -8,8 l 8,8 Z" Fill="{Binding ElementName=btnPrevious1, Path=Foreground}"/>
							<TextBlock Margin="5,0,0,0">Configure Connections</TextBlock>
						</StackPanel>
					</Button>

					<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
						<Grid x:Name="gComparisonProblem" Visibility="Hidden">
		          			<DataComparisons:Exclamation HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,4" />
							<Label HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,20,0" Foreground="#ffc0262c" Content="Comparison may not function properly, see messages above"/>
						</Grid>
	          			<Button Padding="5" FontWeight="Bold" x:Name="btnContinue2" VerticalAlignment="Bottom" Width="Auto" IsEnabled="False" IsDefault="True">
							<StackPanel Orientation="Horizontal">
								<TextBlock Margin="0,0,5,0">Compare</TextBlock>
								<Path Data="M 0,0 l 8,8 l -8,8 Z" Fill="{Binding ElementName=btnContinue2, Path=Foreground}"/>
							</StackPanel>
						</Button>
					</StackPanel>
				</Grid>
        	</Grid>
            <Grid x:Name="gResults" Visibility="Hidden" VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling">
                <DataComparisons:Results Margin="0,0,0,40" Width="Auto" HorizontalAlignment="Stretch" x:Name="myResults"/>
				<Button Padding="5" x:Name="btnPrevious2" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="Auto">
					<StackPanel Orientation="Horizontal">
						<Path Data="M 8,0 l -8,8 l 8,8 Z" Fill="{Binding ElementName=btnPrevious2, Path=Foreground}"/>
						<TextBlock Margin="5,0,0,0">Configure Comparison</TextBlock>
					</StackPanel>
				</Button>
        	</Grid>
        </Grid>
		
		<!-- Splitter -->
		<GridSplitter HorizontalAlignment="Stretch" Grid.Row="2" VerticalAlignment="Bottom" Width="Auto" Height="3" ResizeBehavior="PreviousAndNext" DragIncrement="1" ResizeDirection="Rows">
			<GridSplitter.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF334433" Offset="0"/>
					<GradientStop Color="#FF112211" Offset="1"/>
				</LinearGradientBrush>
			</GridSplitter.Background>
		</GridSplitter>

		<!-- Console -->
		<Grid Grid.Row="3" HorizontalAlignment="Stretch" MinHeight="5">
			<Grid.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FF334433" Offset="0"/>
					<GradientStop Color="#FF112211" Offset="1"/>
				</LinearGradientBrush>
			</Grid.Background>
			<TextBox HorizontalAlignment="Stretch" Text="" TextWrapping="Wrap" x:Name="txtConsole" VerticalScrollBarVisibility="Auto" AcceptsReturn="True" BorderThickness="0" Foreground="#FFFFFFFF" Background="#00000000" FontFamily="Courier New">
			</TextBox>
		</Grid>
	</Grid>
</Window>